import request from '../util/request.js'
import wechat from "@/lib/wechat.js";
const baseUrl = "public/"
export function getConfig(name) {
	return request.post(baseUrl + "getConfig", {
		menu_name: name
	}, {
		noAuth: true
	})
}


export function getGroupValue(name) {
	return request.post(baseUrl + "getGroupValue", {
		menu_name: name
	}, {
		noAuth: true
	})
}



export function getStoreCategoryList() {
	return request.get(baseUrl + "store/category/list", {}, {
		noAuth: true
	})
}
 
export function getNotifyList() {
	return request.get(baseUrl + "notify/list", {}, {
		noAuth: true
	})
}
 
export function getcartaddcf(data) {
	return request.post("store/product/cart/add/cf", data, {
		noAuth: false
	})
}
export function getStoreInfoList(cid) {
	return request.get(baseUrl + "store/info/list", {
		cid: cid
	}, {
		noAuth: true
	})
}
export function getWechatConfig() {
	return request.get(baseUrl + "wechat/config", {
		url: wechat.signLink()
	}, {
		noAuth: true
	})
}

export function getLevelList() {
	return request.get(baseUrl + 'level/list', {}, {
		noAuth: true
	})
}
